#pragma once

#include <stdint.h>
//
#include <msg_rc_raw_s.hpp>

#pragma pack(1)

typedef enum
{
	E_RC_CALI_NORMAL = 0,
	E_RC_CALI_PREPARE,
	E_RC_CALI_THRO_UP,
	E_RC_CALI_THRO_DOWN,
	E_RC_CALI_ROLL_LEFT,
	E_RC_CALI_ROLL_RIGHT,
	E_RC_CALI_PITCH_FRONT,
	E_RC_CALI_PITCH_BACK,
	E_RC_CALI_YAW_LEFT,
	E_RC_CALI_YAW_RIGHT,
	E_RC_CALI_FINISHED,
	E_RC_CALI_CNT,
} E_RC_CALI_ST;

typedef struct
{
	bool valid;
	double ctl[MSG_RC_E_CNT];
	uint64_t sw_btn;
} msg_rc_s;

#pragma pack()